package com.rxcloud.securityoauth.service.impl;

import com.rxcloud.securityoauth.entity.SysPermission;
import com.rxcloud.securityoauth.mapper.SysPermissionMapper;
import com.rxcloud.securityoauth.service.SysPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ruoxi
 * @since 2021-04-30
 */
@Service
public class SysPermissionServiceImpl extends ServiceImpl<SysPermissionMapper, SysPermission> implements SysPermissionService {

    @Autowired
    private SysPermissionMapper sysPermissionMapper;

    @Override
    public List<SysPermission> findByAdminUserId(Integer userId) {
        return sysPermissionMapper.findByAdminUserId(userId);
    }
}
